import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/Home.vue')
    },
    {
      path: '/resume/edit/:id?',
      name: 'resume-edit',
      component: () => import('../views/ResumeEdit.vue')
    },
    {
      path: '/resume/list',
      name: 'resume-list',
      component: () => import('../views/ResumeList.vue')
    },
    {
      path: '/resume/preview/:id',
      name: 'resume-preview',
      component: () => import('../views/ResumePreview.vue')
    }
  ]
});

export default router;